import http from '@/utils/request'
// 通用类型
import type { ResApi } from '@/api/comType'
// 表格类型
import type { ResApiTableList, TableData } from '@/api/tableApi/tableApiType'
// 基本资料表头数据
export const reqTableData = (page: number, pagesize: number) => {
  return http.get<any, ResApi<TableData<ResApiTableList[]>>>('/data/table/list', {
    params: {
      page,
      pagesize
    }
  })
}

// 查询参数
export const reqSearchList = (page: number, pageSize: number, canshu: any) => {
  return http.post<any, any>(`/data/table/search?page=${page}&pageSize=${pageSize}`, canshu)
}
